<%--
  Created by IntelliJ IDEA.
  User: 长沙吴亦凡
  Date: 2021/12/10
  Time: 11:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <table>
        <tr>
            <th>产品编号</th>
            <th>产品名称</th>
            <th>产品价格</th>
            <th>操作</th>
        </tr>
        <c:forEach items="${productList}" var="product">
            <tr>
                <td>${product.id}</td>
                <td>${product.name}</td>
                <td>${product.price}</td>
                <td>
                    <a href="/orderConfirm?id=${product.id}">购买</a>
                </td>
            </tr>
        </c:forEach>
    </table>
</body>
</html>
